﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SQLite;
using SQLHelper;

namespace CreateCode.Init
{
    public static class Initialization
    {
        /// <summary>
        ///  程序初始化
        /// </summary>
        public static void Init()
        {
            #region 创建地址表==>DataBaseAddress
            if (!SQLiteHelper.TableExists("DataBaseAddress"))
            {
                string str_createTable = @"create table DataBaseAddress(
                                     IP varchar(50) not null,
                                     LoginName varchar(50) not null,
                                     PassWord varchar(50) not null);";
                SQLiteHelper.ExecuteNonQuery(str_createTable, null);
            }
            #endregion
        }
    }
}
